package v2

import (
	"github.com/gin-gonic/gin"
	"net/http"
	"go-pipe/api/controller"
)

func TestApi(c *gin.Context) {

	c.JSON(200, gin.H{
		"msg": "apiV2",
	})

}

func GetInfo(c *gin.Context) {

	record := controller.Query("select * from  ip_pool")

	c.JSON(http.StatusOK, gin.H{
		"code": 400,
		"data": record,
	})
}
